home *** CD-ROM | disk | FTP | other *** search
- Path: surise.lyseo.otol.fi!not-for-mail
- From: aalto@lyseo.otol.fi (Lauri Aalto)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: _PCHAR/_MCHAR/OLDREDIRECT
- Date: 30 Jan 1996 16:35:15 GMT
- Organization: large
- Message-ID: <4elhc3$33r@hobbes.lyseo.otol.fi>
- References: <68771273@0humpty.tomate.tng.oche.de>
- NNTP-Posting-Host: surise.lyseo.otol.fi
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Andreas Mixich (humpty@TOMATE.TNG.OCHE.DE) wrote:
- > While I remember _pchar worked when used as pipe, _mchar, which is supposed to
- > allow multiple commands on the console or in a script in one line, does not
- > work. It seems, this won't work in scripts, because the variables are local to
- > the curent shell. But also when using _mchar in a shell it does not work.
-
- _mchar is used for concatenating outputs of multiple commands, for instance:
-
- 1> set _mchar "||"
- 1> echo noline foo || echo bar
- foobar
-
- (No, this X11 terminal really doesn't have an Amiga shell, thus I had to
- pick the example from the top of my head instead of a clipboard.)
-
- --
- Lauri Aalto <aalto@iki.fi> --- http://www.iki.fi/aalto/
-